package com.itmk.student.dao;

import com.itmk.student.entity.Student;
import com.itmk.student.entity.StudentParm;
import com.itmk.student.entity.StudentPointsVo;
import com.itmk.student.entity.StudentVo;
import com.itmk.teacher.entity.Teacher;

import java.util.List;

public interface StudentDao {
    //新增
    void add(Student student);
    //列表
    List<StudentVo> list(StudentParm studentParm);
    //分页总条数
    int getCount(StudentParm studentParm);
    //根据id查询
    Student getById(String stuId);
    //根据id更新数据
    void updateById(Student student);
    //根据id删除
    void deleteById(String stuId);
    //登录
    Student login(String stuNum,String password);
    //成绩列表
    List<StudentPointsVo> pointList(StudentParm parm);
     //成绩列表
    int  pointCount(StudentParm parm);
    //统计学生
    int getTotal();
     //查询原密码是否正确
    Student getUserByPas(int userId, String password);
    //更新密码
    void updatePassword(int userId,String password);
}
